<?	include('includes/loader.inc.php'); 

// Obtengo el tpl a incluir
$tpl = '';
if ($_GET['tpl'] && is_file(CONFIG_DOCUMENT_ROOT.'includes/modules/'.$_GET['tpl'].'.tpl.php'))
	$tpl = CONFIG_DOCUMENT_ROOT.'includes/modules/'.$_GET['tpl'].'.tpl.php';
else
	$tpl = CONFIG_DOCUMENT_ROOT.'includes/modules/home.tpl.php';

//echo '<pre>'.print_r($_GET, true).'</pre>';
//echo '<pre>TPL: '.$tpl.'</pre>';
?>
<html lang="en">

<head>
<?	include('includes/modules/head.inc.php'); ?>
</head>

<body>

	<div class="wrapper">

		<?	include('includes/modules/header.inc.php'); ?>

		<div class="content <?=$_GET['tpl']?>">

			<?	include($tpl); ?>

		</div>

		<?	include('includes/modules/sidebar.inc.php'); ?>

		<?	include('includes/modules/footer.inc.php'); ?>

	</div>

</body>
</html>
